Repository navigation
test(live): V2 enrollment and incremental sync against an account in a separate env file - #52
Merged
Merged
Conversation
V2AltEnvEnrollTests reads credentials from CERTINEXT_ALT_ENV_FILE instead of ~/.env_certinext[_v2]: read-only catalog and group-membership probes, plus opt-in (CERTINEXT_ALT_ENV_ENROLL) DV orders through the plugin and through a direct POST /ssl-certificates. Single-name or wildcard, group override or omission, optional ProductCode, and re-reading an existing order. Orders are left issued.
Sync_V2_Incremental_FromAltEnvFile_ReturnsIssuedCertificates runs a read-only fullSync:false pass and asserts each order in CERTINEXT_ALT_ENV_SYNC_ORDER_IDS comes back GENERATED with a parseable certificate. Config, sync, and leaf parsing are shared helpers in the class.
CERTINEXT_ALT_ENV_EXTRA_SANS adds extra DNS names (UCC): the plugin test picks the matching UCC ProductID and the direct API test sends additionalDomains. The CSR now carries every DNS name in its SAN extension. The direct API test, renamed Raw_PlaceSslOrder_FromAltEnvFile, takes CERTINEXT_ALT_ENV_VARIANT=ov|ev with an organization block from CERTINEXT_ALT_ENV_ORG_NUMBER. The sync test routes plugin logs to the test output so held-back orders show in the summary.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds live V2 integration tests that run against an account described by a separate env file (
CERTINEXT_ALT_ENV_FILE) instead of~/.env_certinext[_v2], so SSL enrollment and sync can be checked on an account other than our sandbox.Chores
V2AltEnvEnrollTests:ListCatalog_FromAltEnvFile,Raw_ListIdentityAndGroups_FromAltEnvFile: read-only probes of the account's catalog and group membership.Raw_PlaceSslOrder_FromAltEnvFile: order through a directPOST /ssl-certificates, bypassing the plugin. DV by default; OV/EV with anorganizationblock.Enroll_V2_Dv_FromAltEnvFile_Issues: DV enrollment through the plugin (single name, UCC, wildcard, wildcard UCC), polled withGetSingleRecorduntil issued.Sync_V2_Incremental_FromAltEnvFile_ReturnsIssuedCertificates: read-onlyfullSync: falsepass; each order inCERTINEXT_ALT_ENV_SYNC_ORDER_IDSmust come back GENERATED with a parseable certificate.CERTINEXT_ALT_ENV_ENROLL, added to_optInOnlyFlags. Orders are left issued. Options:CERTINEXT_ALT_ENV_WILDCARD,CERTINEXT_ALT_ENV_EXTRA_SANS,CERTINEXT_ALT_ENV_VARIANT/CERTINEXT_ALT_ENV_ORG_NUMBER,CERTINEXT_ALT_ENV_GROUP_NUMBER/CERTINEXT_ALT_ENV_OMIT_GROUP,CERTINEXT_ALT_ENV_PRODUCT_CODE,CERTINEXT_ALT_ENV_ORDER_ID.TESTING.mdandINTEGRATION_TESTING.mdlist the new tests and flags.Testing
make testpasses (unit tests)make integration-testpasses (requires~/.env_certinext)make coverageshows no coverage regressionTest-only change, no plugin code touched. Release build is clean. The new tests were run live against a non-sandbox V2 account (single-name DV, DV UCC, and incremental sync of the issued orders); without the opt-in flags the order tests skip.
Checklist
feat:,fix:,chore:, etc.) — this becomes the squash commit message onmain~/.env_certinextcontent committeddocsource/updated if behavior or configuration changed